var express = require('express');
var router = express.Router();
var passport = require('passport')
var userController = require('../controllers/userController')
/* GET users listing. */
router.get('/', function(req, res, next) {
  userController.getAllUsers(req,res)
  // res.send('respond with a resource');
})
// 修改用户信息
router.post('/userId', passport.authenticate('jwt',{session:false}),function(req, res, next) {
  userController.uploadPic(req,res)
  // res.send('respond with a resource');
});
// 修改用户头像信息
router.post('/userId', function(req, res, next) {
  userController.uploadPic(req,res)
  // res.send('respond with a resource');
});
// 修改用户密码信息
router.post('/userId', function(req, res, next) {
  userController.uploadPic(req,res)
  // res.send('respond with a resource');
});
//查询用户信息
router.get('/userId', function(req, res, next) {
  
});
// 查询评价信息
router.post('/evaluateuserID', function(req, res, next) {
  // res.send('respond with a resource');
});
//查看故事信息
router.get('/store', function(req, res, next) {     
  
  // res.send('respond with a resource');
});
//查看积分信息
router.get('/store', function(req, res, next) {     
  
  // res.send('respond with a resource');
});
//查看订单信息
router.get('/store', function(req, res, next) {     
  
  // res.send('respond with a resource');
});


module.exports = router;

